﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonTypes.Client
{
    [Serializable]
    public enum ReservationSlotState {INITIATED, TENTATIVELY_BOOKED, COMMITTED, ABORTED}

    [Serializable]
    public class ReservationSlot
    {
        private long _slotNumber;
        private ReservationSlotState _slotState;
        private Reservation _reservation;

        public ReservationSlot(int slotNumber)
        {
            _slotNumber = slotNumber;
            _slotState = ReservationSlotState.INITIATED;
        }

        public long SlotNumber
        {
            get { return _slotNumber; }
            set { _slotNumber = value; }
        }

        public ReservationSlotState SlotState
        {
            get { return _slotState; }
            set { _slotState = value; }
        }

        public Reservation Reservation
        {
            get { return _reservation; }
            set { _reservation = value; }
        }
    }
}